<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login</title>
<link href="css/estilos.css" rel="stylesheet" type="text/css"></link>
<link href="css/tablePrincipal.css" rel="stylesheet" type="text/css"/>

<script language="JavaScript">
function Abrir_ventana () {
var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=470, height=385, top=85, left=130";
window.open(<s:url action='redirectionToRecordarContrasenia'/>,opciones);
}
</script>

</head>
<body>
<table width="900" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="250">
		<img src="imagenes/blockbuster.jpg" alt="logoBlockbuster" style="height: 114px; width: 113px"/> </td>
		<td width="650">&nbsp;</td>
	</tr>
	<tr>
		<td valign="top" height="450" colspan="2" bgcolor="#F9FCFF">
		<table width="640" border="0" align="center" cellpadding="0">
			<tr>
				<td height="20"></td>
			</tr>
			<tr align="center">
				<td height="20" bgcolor=#99CCFF><font size="5">Sistema de Alquiler de Videos BlockBuster</font></td>
			</tr> 
		
		</tr>
		</td>
		</table>
		<table width="305" border="0" align="center" cellpadding="0">
			<tr>
				<td align="center">&nbsp;</td>
			</tr>
			<tr>
				<td><img src="imagenes/adordo1.jpg" width="305" height="17" /></td>
			</tr>
			<tr>
				<td height="200"  background="imagenes/adorno2.jpg">
				<s:form	>
					<table width="280" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td align="center"><img alt="logo" src="imagenes/login.jpg" /></td>
						</tr>
						<tr>
							<td>
							<p class="textoformulario"><s:text name="Usuario:" /></p>
							</td>
						</tr>
						<tr>
							<td>
							<p class="textoformulario">
							<s:textfield name="objUsuario.dni"  maxlength="15"/></p>
							</td>
						</tr>
						<tr>
							<td>
							<p class="textoformulario"><s:text name="Contraseña:" /></p>
							</td>
						</tr>
						<tr>
							<td>
							<p class="textoformulario">
							<s:password name="objUsuario.contrasenia"
								label="Password" maxLength="15"/></p>
							</td>
						</tr>
						<tr>
							<td>
							<p class="textoformulario">
							<s:submit value="Login" align="center" action="loginAction"/></p>
							</td>
						</tr>
						<tr>
						<td>
						<a href="<s:url action="redirectionToRecordarContrasenia" />">
						¿Ha olvidado la contraseña?</a> </td>
						</tr>
						<tr><td>
						${requestScope.mensaje}</td>
						</tr>
						
						</table>
				</s:form></td>
			</tr>
			<tr>
				<td><img src="imagenes/adorno3.jpg" width="305" height="17" /></td>
			</tr>
		</table>
		</td>
	<tr>
		<td><jsp:include page="pie_pagina.jsp" /></td>
	</tr>
</table>
</body>
</html>